<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/default.master"
    Inherits="MediaMonitor.Login" Title="Please Login" ValidateRequest="false" 
    CodeBehind="login.aspx.cs" %>

<%@ Register TagPrefix="ctrl" TagName="ForgotPass" Src="~/controls/user-management/forgot-password.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Body" runat="Server">
    <div class="row">
        <!-- Post -->
        <div class="post-383 page type-page status-publish hentry" id="post-383">
            <div class="sixteen columns">
                <div class="page_heading">
                    <h1>
                        Client Login</h1>
                </div>
                <!-- Featured Services Section::END -->
                <div class="row padded_block">
                    <div class="">
                        <asp:UpdatePanel ID="pnlUpdate" runat="server">
                            <ContentTemplate>
                                
                                            <asp:UpdatePanel ID="pnlUpldateLoginx" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                 
                                                                <h2>
                                                                    <asp:Literal ID="ltrHeading" runat="server" /></h2>
                                                                <div id="login-form" class="loginform">
                                                                    <asp:Login ID="loginx" runat="server" OnAuthenticate="login_Authenticate">
                                                                        <LayoutTemplate>
                                                                          <asp:Panel ID="pnlLoginx" runat="server" DefaultButton="LoginButton">
                                                                            <p>
                                                                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username/Email:</asp:Label>
                                                                                <asp:TextBox ID="UserName" runat="server" CssClass="aqua_input"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UserName"
                                                                                    Width="150" Display="Dynamic" ErrorMessage="User Name is required." ToolTip="User Name is required."
                                                                                    ValidationGroup="loginx">*</asp:RequiredFieldValidator>
                                                                            </p>
                                                                            <p>
                                                                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                                                                <asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass="aqua_input"></asp:TextBox>
                                                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                                                    Display="Dynamic" ErrorMessage="Password is required." ToolTip="Password is required."
                                                                                    ValidationGroup="loginx">*</asp:RequiredFieldValidator>
                                                                            </p>
                                                                            <p>
                                                                            
                                                                                    <asp:CheckBox  ID="RememberMe" runat="server" Text="Remember me next time." Font-Size="Smaller" />
                                                                              
                                                                            </p>
                                                                            <p class="form-submit">
                                                                            <asp:Button ID="LoginButton" runat="server" Text="Login" CssClass="sm_button button" ValidationGroup="loginx" CommandName="Login" />
                                                                               <%-- <asp:ImageButton ID="LoginButton" runat="server" SkinID="Login" ValidationGroup="loginx"
                                                                                    CommandName="Login" />--%>
                                                                            </p>
                                                                            </asp:Panel>
                                                                        </LayoutTemplate>
                                                                    </asp:Login>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                       
                                
                                <div align="center" style="display: none;">
                                    <asp:PasswordRecovery ID="pwdRecovery" runat="server" SuccessText="Your password has been sent to your email address">
                                        <UserNameTemplate>
                                            <asp:Panel ID="pnlPwd" runat="server" DefaultButton="SubmitButton" EnableViewState="false">
                                                <center>
                                                    <table border="0" cellpadding="1" cellspacing="5" align="center" style="text-align: left;"
                                                        width="300">
                                                        <tr>
                                                            <td>
                                                                <table border="0" cellpadding="0" align="center">
                                                                    <tr>
                                                                        <td align="left" colspan="2" class="ErrorText Bold">
                                                                            Forgot Your Password?
                                                                            <br />
                                                                            <br />
                                                                        </td>
                                                                        <td width="80">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="left" colspan="2">
                                                                            Enter your User Name to receive your password.<br />
                                                                            <br />
                                                                        </td>
                                                                        <td>
                                                                        </td>
                                                                    </tr>
                                                                    <tr valign="middle">
                                                                        <td>
                                                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" EnableViewState="false">Username/Email: </asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="UserName" runat="server" EnableViewState="false" Width="130" ValidationGroup="ctl00@pwdRecovery1"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" EnableViewState="false"
                                                                                ControlToValidate="UserName" ErrorMessage="User Name is required." ToolTip="User Name is required."
                                                                                ValidationGroup="ctl00$pwdRecovery1">*</asp:RequiredFieldValidator>
                                                                        </td>
                                                                        <td>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="center" colspan="3" style="color: Red;">
                                                                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                        </td>
                                                                        <td>
                                                                            <asp:ImageButton ID="SubmitButton" runat="server" CommandName="Submit" ValidationGroup="ctl00$pwdRecovery1"
                                                                                SkinID="Submit" EnableViewState="false" />
                                                                        </td>
                                                                        <td>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </center>
                                            </asp:Panel>
                                        </UserNameTemplate>
                                    </asp:PasswordRecovery>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                    <div class="one-third column">
                    </div>
                </div>
                <p>
                    &nbsp;</p>
            </div>
        </div>
    </div>
</asp:Content>
